package com.mall.product.vo;

import com.mall.product.dto.SeckillSkuRedisDTO;
import com.mall.product.dto.SkuImagesDTO;
import com.mall.product.dto.SkuInfoDTO;
import com.mall.product.dto.SpuInfoDescDTO;
import lombok.Data;

import java.util.List;

/**
 * @author: 谢君臣
 * @Date: 2022/8/4-17:05
 * @version: 1.0
 * @function:
 */
@Data
public class SkuItemVo {

    private SkuInfoDTO skuInfo;
    private boolean hasStock = true;
    private List<SkuImagesDTO> skuImages;
    private List<SkuItemSaleAttrVo> saleAttr;
    private SpuInfoDescDTO spuInfoDesc;
    private List<SpuItemAttrGroupVo> groupVos;
    private SeckillSkuRedisDTO skuSeckillInfo;


    @Data
    public static class SpuItemAttrGroupVo{
        private String groupName;
        private List<SpuBaseAttrVo> attrs;
    }
    @Data
    public static class SpuBaseAttrVo{
        private String attrName;
        private String attrValue;
    }
}
